package com.sxit.tdf.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxit.tdf.server.entity.Course;
import com.sxit.tdf.server.entity.bo.CourseInfoBo;
import com.sxit.tdf.server.entity.bo.SimpleCourseInfoBo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * Mapper 接口
 *
 * @author 橙子高
 * @since 2022-02-18
 */
public interface CourseMapper extends BaseMapper<Course> {

  IPage<CourseInfoBo> getCourseInfoBo(Page<CourseInfoBo> page, @Param("map") HashMap map);

  List<SimpleCourseInfoBo> getSimpleCourseInfoBoList(Integer classId);
}
